package org.idea.spring.common.error.service.impl;

import lombok.SneakyThrows;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

/**
 * @Author linhao
 * @Date created in 6:27 下午 2022/8/3
 */
@Service
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class TestService {

    @SneakyThrows
    public void test(){
        Thread.sleep(100);
        System.out.println("this is test");
    }
}
